-- GENERATED SPELL FOR [Vekniss Guardian] --


function spell0_15233(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_15233', 598, 1)
end

function spell1_15233(pUnit, Event) --@Impale,Self--
pUnit:FullCastSpellOnTarget(26025,pUnit)
pUnit:RegisterEvent('Sorts_15233', 8000, 1)
end

function Sorts_15233(pUnit, Event)
local choix_sorts_15233 = math.random(0, 1)
if choix_sorts_15233 == 0 then
pUnit:RegisterEvent('spell0_15233', 1, 1)
end
if choix_sorts_15233 == 1 then
pUnit:RegisterEvent('spell1_15233', 1, 1)
end
end

function mob15233_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15233', math.random(1500, 3000), 1)
end

function mob15233_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15233_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15233_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15233, 1, 'mob15233_Action')
RegisterUnitEvent(15233, 2, 'mob15233_Leave')
RegisterUnitEvent(15233, 3, 'mob15233_Kill')
RegisterUnitEvent(15233, 4, 'mob15233_Die')
